/**
 * 
 */
package com.vercer.engine.proxy;

import java.io.File;

import com.google.appengine.tools.development.LocalServerEnvironment;

public class DummyLocalServerEnvironment implements LocalServerEnvironment
{
	private final String warPath;

	public DummyLocalServerEnvironment(String warPath)
	{
		this.warPath = warPath;
	}
	
	@Override
	public void waitForServerToStart() throws InterruptedException
	{
	}

	@Override
	public int getPort()
	{
		return 8080;
	}

	@Override
	public File getAppDir()
	{
		return new File(warPath);
	}

	@Override
	public String getAddress()
	{
		return "localhost";
	}
}